//
//  UILabel+initLabel.m
//  aaa
//
//  Created by dllo on 16/3/4.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "UILabel+initLabel.h"

@implementation UILabel (initLabel)

+ (instancetype)labelWithFrame:(CGRect)frame color:(UIColor *)color alignment:(NSTextAlignment)alignment
{
    UILabel *label = [[UILabel alloc] initWithFrame:frame];
    
    if (color) {
        
        label.backgroundColor = color;
    }
    
    label.textAlignment = alignment;
    
    return label;
}


@end
